package mb;

import javax.swing.JApplet;
// import javax.swing.JFrame;  // -
import mb.view.AppFrame;  // +

public class App extends JApplet {

  private AppFrame appFrame;  // &

  public App() {
    super();
    appFrame = new AppFrame();  // &
    // appFrame.setTitle("Empty window");  // -
    // appFrame.setSize(400, 300);  // -
  }

  public void init() {
    appFrame.setLocation(80, 80);
  }

  public void start() {
    appFrame.setVisible(true);
  }

  public void stop() {
    appFrame.setVisible(false);
  }

  public void destroy() {
    appFrame.dispose();
  }

  public static void main(String[] args) {
    App app = new App();  
    app.init();  
    app.start();  
  }

}
